﻿using Microsoft.WindowsAzure.StorageClient;

namespace AzureDiagMon.Common.Helpers.Azure
{
    public static class GenericTabelServiceContextExtensions
    {
        //public static GenericTableServiceContext<T> GetGenericContext<T>(this CloudTableClient cloudTableClient) where T : TableServiceEntity
        //{
        //    var genericTableContext = new GenericTableServiceContext<T>(cloudTableClient.BaseUri.ToString(), cloudTableClient.Credentials);
        //    return genericTableContext;
        //}

        //public static GenericTableServiceContext<T> GetGenericContext<T>(this CloudTableClient cloudTableClient, string tableName) where T : TableServiceEntity
        //{
        //    var genericTableContext = new GenericTableServiceContext<T>(cloudTableClient.BaseUri.ToString(), cloudTableClient.Credentials, tableName);
        //    return genericTableContext;
        //}
    }
}